package com.fourth.service;

import com.alipay.api.AlipayApiException;
import com.fourth.vo.PayInfoVO;
import com.ljx.vo.Result;

import java.math.BigDecimal;

/**
 * @author Mr.ma
 * @since 2023/3/8 16:15
 **/
public interface UbWxPayService {
    /**
     * 微信支付
     * @param outTradeNo
     * @param subjectName
     * @param totalAmount
     * @return
     */
    PayInfoVO wxPay(String outTradeNo, String subjectName, BigDecimal totalAmount);

    /**
     * 从微信服务端获取支付状态
     * @param code
     * @return
     */
    Result queryPayStatus(String code);
}
